package top.yoahh.system.mapper;

import org.apache.ibatis.annotations.Param;
import top.yoahh.system.entity.SysRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import top.yoahh.system.query.SysRoleQueryInfo;

import java.util.List;

/**
 * <p>
 * 系统管理-角色表  Mapper 接口
 * </p>
 *
 * @author hjx
 * @since 2022-06-17
 */
public interface SysRoleMapper extends BaseMapper<SysRole> {

    List<SysRole> queryList(SysRoleQueryInfo queryInfo);

    List<SysRole> queryByUserId(@Param("userId") String userId);

    List<SysRole> queryByMenuUrl(@Param("url") String url);
}
